﻿namespace Dantooine.WebAssembly.Shared.Authorization;

// Original source: https://github.com/berhir/BlazorWebAssemblyCookieAuth.
public class UserInfo
{
    public static readonly UserInfo Anonymous = new UserInfo();

    public bool IsAuthenticated { get; set; }

    public string? NameClaimType { get; set; }

    public string? RoleClaimType { get; set; }

    public ICollection<ClaimValue> Claims { get; set; } = [];
}
